home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Interfaces & Libraries / Interfaces / PInterfaces / GXMessages.p < prev    next >
Encoding:
Text File  |  1995-07-06  |  2.6 KB  |  118 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        GXMessages.p
  3.  
  4.      Contains:    This file contains all of the public data structures,
  5.  
  6.      Version:    Technology:    Quickdraw GX 1.1
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. }
  19.  
  20. {$IFC UNDEFINED UsingIncludes}
  21. {$SETC UsingIncludes := 0}
  22. {$ENDC}
  23.  
  24. {$IFC NOT UsingIncludes}
  25.  UNIT GXMessages;
  26.  INTERFACE
  27. {$ENDC}
  28.  
  29. {$IFC UNDEFINED __GXMESSAGES__}
  30. {$SETC __GXMESSAGES__ := 1}
  31.  
  32. {$I+}
  33. {$SETC GXMessagesIncludes := UsingIncludes}
  34. {$SETC UsingIncludes := 1}
  35.  
  36.  
  37. {$IFC UNDEFINED __CONDITIONALMACROS__}
  38. {$I ConditionalMacros.p}
  39. {$ENDC}
  40.  
  41. {$IFC UNDEFINED __MIXEDMODE__}
  42. {$I MixedMode.p}
  43. {$ENDC}
  44. {    Types.p                                                        }
  45.  
  46. {$IFC UNDEFINED __TYPES__}
  47. {$I Types.p}
  48. {$ENDC}
  49.  
  50. {$PUSH}
  51. {$ALIGN MAC68K}
  52. {$LibExport+}
  53. {
  54.  
  55.     >>>>>> CONSTANTS <<<<<<
  56.  
  57. }
  58. { Message Manager Trap }
  59.  
  60. CONST
  61.     messageManagerTrap            = $ABFB;
  62.  
  63. { Message Manager Gestalt Selector }
  64.     gestaltMessageMgrVersion    = 'mess';
  65.  
  66. { Message Manager Error Result Codes }
  67.     messageStopLoopingErr        = -5775;
  68.     cantDeleteRunningHandlerErr    = -5776;
  69.     noMessageTableErr            = -5777;
  70.     dupSignatureErr                = -5778;
  71.     messageNotReceivedErr        = -5799;
  72.  
  73. TYPE
  74.     MessageGlobalsInitProcPtr = ProcPtr;  { PROCEDURE MessageGlobalsInit(messageGlobals: UNIV Ptr); }
  75.     MessageGlobalsInitUPP = UniversalProcPtr;
  76.  
  77. CONST
  78.     uppMessageGlobalsInitProcInfo = $000000C1; { PROCEDURE (4 byte param); }
  79.  
  80. FUNCTION NewMessageGlobalsInitProc(userRoutine: MessageGlobalsInitProcPtr): MessageGlobalsInitUPP;
  81.     {$IFC NOT GENERATINGCFM }
  82.     INLINE $2E9F;
  83.     {$ENDC}
  84.  
  85. PROCEDURE CallMessageGlobalsInitProc(messageGlobals: UNIV Ptr; userRoutine: MessageGlobalsInitUPP);
  86.     {$IFC NOT GENERATINGCFM}
  87.     INLINE $205F, $4E90;
  88.     {$ENDC}
  89.     
  90. TYPE
  91.     MessageGlobalsInitProc = MessageGlobalsInitUPP;
  92.  
  93. {
  94.  
  95.     PUBLIC INTERFACES
  96.  
  97.     Message Handler API Routines
  98. }
  99.  
  100. FUNCTION CountMessageHandlerInstances: LONGINT; C;
  101. FUNCTION GetMessageHandlerClassContext: Ptr; C;
  102. FUNCTION SetMessageHandlerClassContext(anyValue: UNIV Ptr): Ptr; C;
  103. FUNCTION GetMessageHandlerInstanceContext: Ptr; C;
  104. FUNCTION SetMessageHandlerInstanceContext(anyValue: UNIV Ptr): Ptr; C;
  105. FUNCTION NewMessageGlobals(messageGlobalsSize: LONGINT; initProc: MessageGlobalsInitUPP): OSErr; C;
  106. PROCEDURE DisposeMessageGlobals; C;
  107.  
  108. {$ALIGN RESET}
  109. {$POP}
  110.  
  111. {$SETC UsingIncludes := GXMessagesIncludes}
  112.  
  113. {$ENDC} {__GXMESSAGES__}
  114.  
  115. {$IFC NOT UsingIncludes}
  116.  END.
  117. {$ENDC}
  118.